home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / random < prev    next >
Text File  |  2001-04-06  |  660b  |  16 lines

  1. SYNOPSIS
  2.         int random(int n)
  3.  
  4. DESCRIPTION
  5.         Returns a number in the random range [0 .. n-1].
  6.  
  7.         The random number generator is proven to deliver an equal distribution
  8.         of numbers over a big range, with no repetition of number sequences
  9.         for a long time. The downside of these (desirable) qualities is that
  10.         when generating numbers in a small range over short time, certain
  11.         numbers        will appear far more often than others.
  12.  
  13.         The only solution is the implementation of a special simul_efun which
  14.         takes special steps to implement an equal distribution over small
  15.         ranges and short times.
  16.